<template>
  <div>
    <!-- 个人详情页 -->
    <div class="headerbox">
      <div class="header">
        <!-- <p>&lt;</p> -->
        <p><van-icon @click="fun()" name="arrow-left" /></p>
        <p><van-icon name="ellipsis" /></p>
      </div>
    </div>
    <!-- header个人头像头部 -->
    <div class="personlistbox">
      <div class="personlist">
        <div class="up">
          <div class="left">
            <img src="yangchao/imgs/pingjia1.jpg" alt="" />
          </div>
          <div class="right">
            <h5>乐乐爱吃肉</h5>
            <p>ip属地：陕西省 <span ><van-icon name="fail" /></span></p>
            <p>女 <span> VIP实习生</span></p> 
          </div>
        </div>
        <!-- <div class="mid">本人有一个梦想：逛吃全世界</div> -->
        <div class="down">
          <div class="left">
            <div class="le">
              <h4>83</h4>
              <p>粉丝</p>
            </div>
            <div class="le">
              <h4>90</h4>
              <p>关注</p>
            </div>
            <div class="le">
              <h4>47</h4>
              <p>获赞</p>
            </div>
          </div>
          <div class="right">关注</div>
        </div>
      </div>
    </div>
    <!-- <footer>底部开始</footer> -->
    <div class="footerbox">
      <div class="footer">
        <div class="up">
          <p>动态</p>
          <p>笔记</p>
          <p>评价</p>
          <p>更多</p>
        </div>
        <div class="mid">
          <div class="all">
            <p class="downo">全部.61</p>
            <p class="mid">快食主义</p>
            <p class="upo">西安</p>
            <p class="upp">火锅</p>
            <p class="upp">必吃榜</p>
          </div>
        </div>
        <!-- 图片mock -->
        <div class="down">
          <div class="playpic" v-for="(v, i) in obj" :key="i + 1" >
            <div>
                <!-- {{v.title}} -->
              <img :src="v.imgsrc2" alt />
              <p class="ditu">
                <span class="iconfont icon-ditu"></span>
                {{ v.next }}
                <span class="iconfont icon-dianzan">0</span>
              </p>
              <p class="txt">{{ v.title }}</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
// import axios from "axios";
export default {
  data() {
    return {
      obj: [
        {title:"打卡成功",next:"一坐一忘云南菜",imgsrc2:"yangchao/imgs/pingjia1.jpg"},
        {title:"打卡成功",next:"小于重庆火锅",imgsrc2:"yangchao/imgs/1.1.jpg"},
        {title:"打卡成功",next:"虾唠叨·大虾火锅",imgsrc2:"yangchao/imgs/1.2.jpg"},
        {title:"打卡成功",next:"一坐一忘云南菜",imgsrc2:"yangchao/imgs/1.3.jpg"},
        {title:"打卡成功",next:"一坐一忘云南菜",imgsrc2:"yangchao/imgs/1.4.jpg"},
        {title:"打卡成功",next:"一坐一忘云南菜",imgsrc2:"yangchao/imgs/1.5.jpg"},
        // {imgsrc2:"yangchao/imgs/pingjia1.jpg"}
      ],
    };
  },
  methods:{
    fun(){
        this.$router.push("/yccsix")
    }
  }
//   mounted() {
//     axios.request("http://localhost:8889/Sperson").then((ok) => {
//       console.log(ok);
//       this.arr = ok.data;
//     });
//   },
  //   filters: {
  //     xiaoming(arr) {
  //       if (this.arr.length > 4) {
  //         this.arr.substr(0, 4);
  //       } else {
  //         return this.val;
  //       }
  //     },
  //   },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.headerbox {
  width: 100%;
  .header {
    width: 91.733vw;
    margin: auto;
    display: flex;
    justify-content: space-between;
    font-size: 8vw;
    .iconfont {
      font-size: 5.067vw;
      line-height: 10.667vw;
    }
  }
}
.personlistbox {
  width: 100%;
  .personlist {
    width: 91.733vw;
    height: 50.667vw;
    margin: auto;
    border-bottom: 0.08vw solid #f5f5f5;
    .up {
      width: 80vw;
      height: 22.133vw;
      display: flex;
      img {
        width: 22.667vw;
        height: 22.133vw;
        border-radius: 12.267vw;
      }
      .right {
        margin: 6.133vw 20.8vw 0 1.6vw;
        p {
          font-size: 2.667vw;
        }
        span {
          font-size: 2.667vw;
        }
      }
    }
    .mid {
      font-size: 2.667vw;
      margin-top: 6.4vw;
    }
    .down {
      display: flex;
      justify-content: space-between;
      .left {
        display: flex;
        justify-content: space-around;
        width: 26.667vw;
        height: 8.533vw;
        margin-top: 5.067vw;
        .le {
          text-align: center;
          p {
            font-size: 2.667vw;
            // color: #e5e5e5;
            color: #f68f7e;
          }
        }
      }
      .right {
        width: 54.133vw;
        height: 8vw;
        text-align: center;
        line-height: 8vw;
        background-color: #fa804f;
        margin-top: 5.6vw;
        color: white;
        border-radius: 4.8vw;
      }
    }
  }
}
.footerbox {
  width: 100%;
  margin-top: 4.267vw;
  .footer {
    width: 91.733vw;
    margin: auto;
    .up {
      width: 50.933vw;
      display: flex;
      justify-content: space-around;
      font-size: 3.733vw;
      font-weight: bold;
    }
  }
}
.mid {
  width: 100%;
  .all {
    margin: auto;
    width: 91.733vw;
    display: flex;
    text-align: center;
    line-height: 7.2vw;
    margin-top: 2.4vw;
    font-size: 2.4vw;
    .upo {
      width: 13.333vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      margin-right: 1.333vw;
      background-color: #f6f6f6;
    }
    .upp {
      width: 13.333vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      background-color: #f6f6f6;
      // color: #f68f7e;
      margin-right: 1.333vw;
    }
    .mid {
      width: 25.6vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      background-color: #f6f6f6;
      margin-right: 1.333vw;
    }
    .downo {
      width: 20.267vw;
      height: 7.2vw;
      border-radius: 2.667vw;
      background-color: #ffeee7;
      color: #f68f7e;
    }
  }
}
.down {
  width: 100%;
  margin-top: 5.6vw;
  flex-wrap: wrap;
  display: flex;
  .playpic {
    margin: auto;
    // width: 91.733vw;
    // display: flex;
    // flex-wrap: wrap;
    // justify-content: space-between;
    div {
      width: 42.467vw;
      height: 64.8vw;
      position: relative;
      .ditu {
        position: absolute;
        top: 40.533vw;
        left: 1.867vw;
        color: #f6f6f6;
        font-size: 2.667vw;
      }
      img {
        width: 41.467vw;
        height: 47.2vw;
      }
      .txt {
        width: 46.667vw;
        margin-bottom: 0.8vw;
        text-align: left;
        // overflow-wrap:warp;
      }
    }
  }
}
</style>